package com.qk.common.enums.param;

import com.qk.common.enums.Code;

public enum ParamEnum implements Code {
    PARAM_ERROR("参数错误",10001),
    USERNAME_ERROR("用户名错误",10002 ),
    PASSWORD_ERROR("密码错误",10003 ),
    STATUS_ERROR("用户已停用",10004 ),
    ACTIVITY_REFERENCE_ERROR("活动被引用",10005 ),
    ;

    private final String msg;
    private final int code;

    ParamEnum(String msg, int code) {
        this.msg = msg;
        this.code = code;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
